home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-21 | 758 b | 37 lines | [TEXT/MPS ] |
- // The C++ Booch Components (Version 2.1)
- // (C) Copyright 1990-1993 Grady Booch. All Rights Reserved.
- //
- // BCStoreM.h
- //
- // This file contains the declaration of the managed storage
- // management class utility.
-
- #ifndef BCSTOREM_H
- #define BCSTOREM_H 1
-
- #include "BCPool.h"
-
- // Class utility providing a managed memory allocation/deallocation protocol
-
- class BC_CManaged {
- public:
-
- static BC_CPool& fPool;
-
- static void* Allocate(size_t s)
- {return fPool.Allocate(s);}
- static void Deallocate(void* p, size_t s)
- {fPool.Deallocate(p, s);}
-
- private:
-
- BC_CManaged() {}
- BC_CManaged(const BC_CManaged&) {}
- void operator=(const BC_CManaged&) {}
- void operator==(const BC_CManaged&) {}
- void operator!=(const BC_CManaged&) {}
-
- };
-
- #endif
-